.login-register-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 20px;
}

.form-container {
  width: 100%;
  max-width: 400px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.form-toggle {
  display: flex;
  border-bottom: 1px solid #eee;
}

.form-toggle button {
  flex: 1;
  padding: 20px;
  border: none;
  background: none;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.form-toggle button.active {
  background: #667eea;
  color: white;
}

.form-content {
  padding: 30px;
}

.form-group {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.form-group label {
  flex: 0 0 80px; /* 固定标签宽度 */
  margin-bottom: 0;
  margin-right: 15px;
  text-align: right;
}

.form-group input {
  flex: 1;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 16px;
  box-sizing: border-box;
}

.form-group input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
}

.checkbox {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.checkbox input {
  width: auto;
  margin-right: 8px;
}

.privacy-policy {
  display: flex;
  align-items: center;
  width: max-content;
}

.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.forgot-password {
  color: #667eea;
  text-decoration: none;
}

.forgot-password:hover {
  text-decoration: underline;
}

.submit-btn {
  width: 100%;
  padding: 15px;
  background: linear-gradient(to right, #667eea, #764ba2);
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
  transition: opacity 0.3s;
}

.submit-btn:hover {
  opacity: 0.9;
}

.social-login {
  margin-top: 30px;
  text-align: center;
}

.social-login p {
  position: relative;
  color: #999;
  margin-bottom: 20px;
}

.social-login p::before,
.social-login p::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 30%;
  height: 1px;
  background: #eee;
}

.social-login p::before {
  left: 0;
}

.social-login p::after {
  right: 0;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.icon {
  display: inline-block;
  width: 40px;
  height: 40px;
  line-height: 40px;
  border-radius: 50%;
  background: #f5f5f5;
  color: #666;
  cursor: pointer;
  transition: all 0.3s;
}

.icon:hover {
  background: #667eea;
  color: white;
}

.captcha-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.captcha-input {
  width: 150px;
  flex: 1;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 16px;
  box-sizing: border-box;
}

.captcha-input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
}

.captcha-image {
  width: 85px; /* 修改为实际宽度 */
  height: 29px; /* 修改为实际高度 */
  border: 1px solid #ddd;
  border-radius: 5px;
  cursor: pointer;
  object-fit: contain; /* 确保完整显示图片 */
}

.captcha-image:hover {
  opacity: 0.8;
}
